package jmu.edu.yjc.domain.vo.elderly;

import com.alibaba.excel.annotation.ExcelProperty;
import jmu.edu.yjc.annotation.ExcelValid;
import jmu.edu.yjc.config.GenderConverter;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ExcelElderlyVo {
    //主键
    @ExcelProperty("序号")
    private Long id;
    //名字
    @ExcelValid(message = "姓名不能为空")
    @ExcelProperty("姓名")
    private String name;
    //性别
    @ExcelProperty(value = "性别",converter = GenderConverter.class)
    private String sex;
    //年龄
    @ExcelProperty("年龄")
    private Integer age;
    //手机号码
    //身高
    @ExcelProperty("身高")
    private Double height;
    //体重
    @ExcelProperty("体重")
    private Double weight;
    @ExcelValid(message = "手机号不能为空")
    @ExcelProperty("手机号码")
    private String phoneNumber;
    //身份证ID
    @ExcelValid(message = "身份证不能为空")
    @ExcelProperty("身份证")
    private String identityId;
    //预留的亲属电话
    @ExcelProperty("亲属电话")
    private String telForRelatives;
    //预留的亲属名字
    @ExcelProperty("亲属姓名")
    private String nameForRelatives;
    //家庭住址
    @ExcelProperty("家庭住址")
    private String address;
}
